// 引入项目中所用的图标
import {
  FundProjectionScreenOutlined,
  DatabaseOutlined,
  CarOutlined,
  DollarOutlined,
  WifiOutlined,
  UnorderedListOutlined,
  ConsoleSqlOutlined,
  ProjectOutlined,
  HomeOutlined,
  PartitionOutlined,
  SettingOutlined,
  TeamOutlined,
  MenuUnfoldOutlined,
  MenuFoldOutlined,
  PoweroffOutlined,
  LockOutlined,
  HolderOutlined
} from '@ant-design/icons-vue'

const icons = [
  FundProjectionScreenOutlined,
  DatabaseOutlined,
  CarOutlined,
  DollarOutlined,
  WifiOutlined,
  ConsoleSqlOutlined,
  UnorderedListOutlined,
  ProjectOutlined,
  HomeOutlined,
  PartitionOutlined,
  SettingOutlined,
  TeamOutlined,
  MenuUnfoldOutlined,
  MenuFoldOutlined,
  PoweroffOutlined,
  LockOutlined,
  HolderOutlined
]
// app.use调用对象里面的install方法
export default {
  install(app) {
    // 全局注册我们使用的所有图标
    // console.log(icons)

    icons.forEach((item) => app.component(item.displayName, item))
  }
}
